package com.liujun.spring4.demo.aop.aop.throwsadvice;

import java.sql.SQLException;

/**
 * 模拟业务方法
 *
 * @author liujun
 * @version 0.0.1
 * @date 2018/09/22
 */
public class ForumService {

  public void removeFormum(int forumId) {
    System.out.println("ForumService  run removeFormum :" + forumId);
    throw new RuntimeException("run timeException");
  }

  public void updateForum(String value) throws Exception {
    System.out.println(" ForumService run updateForum :" + value);
    throw new SQLException("database update exception");
  }
}
